package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class SystemDictionary {
    //主键
    private Long id;
    //业务名称
    private String name;
    //业务缩写
    private String sn;
    //业务介绍
    private String intro;
    //父结点id
    private Long parentId;
    //父结点名称
    private String parentName;

    //数据字典明细(子节点)
    List<SystemDictionary> children= new ArrayList<>();

    public String toString(){
        return JSON.toJSONString(this);
    }


}